package com.theo.service;

import com.theo.entity.NewsInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 方涛
 * @since 2021-02-02
 */
public interface NewsInfoService extends IService<NewsInfo> {

    int saveNewsInfo(NewsInfo newsInfo);

    int deleteNewsInfo(Integer id);

    int updateNewsInfo(NewsInfo newsInfo);

    List<NewsInfo> queryAllNewsInfo();

    NewsInfo queryNewsInfoById(Integer id);

    List<NewsInfo> findAllByDate(String date);
}
